package com.yimi.yinhepda.entity.response;

import java.io.Serializable;

/**
 * @author user
 * @date 2017/4/6
 * PDA获取装车任务单号列表  子单信息
 */
public class QueryLoadDetailChildBillcode implements Serializable {
  /** 子单号/包号 */
  private String childWaybillNo;
  /** 是否已扫描 0-未扫描，1-已扫描 */
  private Integer flag;
  /** 是否已打印：2或者空-已打印，1-未打印（需要打印标签） */
  private Integer bePrint;
  /** 子单合并后对应的配载单号 */
  private String stowageNo;
  /** 托盘绑定是否已扫描 0-未扫描，1-已扫描 */
  private int palletBindFlag;

  public String getStowageNo() {
    return stowageNo;
  }

  public void setStowageNo(String stowageNo) {
    this.stowageNo = stowageNo;
  }

  public String getChildWaybillNo() {
    return childWaybillNo;
  }

  public void setChildWaybillNo(String childWaybillNo) {
    this.childWaybillNo = childWaybillNo;
  }

  public Integer getBePrint() {
    return bePrint;
  }

  public void setBePrint(Integer bePrint) {
    this.bePrint = bePrint;
  }

  public int getPalletBindFlag() {
    return palletBindFlag;
  }

  public void setPalletBindFlag(int palletBindFlag) {
    this.palletBindFlag = palletBindFlag;
  }

  public Integer getFlag() {
    if (flag == null) {
      flag = 0;
    }
    return flag;
  }

  public void setFlag(Integer flag) {
    this.flag = flag;
  }

  @Override public boolean equals(Object obj) {
    if (obj instanceof QueryLoadDetailChildBillcode) {
      QueryLoadDetailChildBillcode u = (QueryLoadDetailChildBillcode) obj;
      return this.childWaybillNo.equals(u.childWaybillNo);
    }
    return super.equals(obj);
  }
}
